package com.example.demo.service.assembler;

import com.example.demo.api.dto.EmployeeDTO;
import com.example.demo.domain.entity.Employee;
import org.springframework.beans.BeanUtils;

public class EmployeeAssembler {
    private EmployeeAssembler() {

    }

    public static Employee toEmployee(EmployeeDTO employeeDTO) {
        Employee employee = new Employee();
        BeanUtils.copyProperties(employeeDTO,employee);
        return employee;
    }
}
